<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>  
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>保修列表</title>

<script type="text/javascript" src="../../../js/jquery-1.3.1.js"></script>
<script type="text/javascript" src="../../../js/jquery-ui-personalized-1.6rc6.min.js"></script>
<script type="text/javascript" src="../js/dormSupervisor.js"></script>
<link type="text/css" href="../../../style/theme/ui.all.css" rel="stylesheet" />
</head>
<body>
	<h1>${studentAffairTeacher.school.name}的保修列表</h1>
	<table id="dormitoryChage">
    	<th>寝室更换表</th>
    	<tbody>
    		<c:forEach items="${dormitoryChange.list}" var="dormitoryChange">
	        <tr>
	        	<td>ID：${dormitoryChange.id }</td>
	        	<td> 学生姓名:${dormitoryChange.student.realName} </td>
	        	<td>所在楼栋：${dormitoryChange.student.dormitory.building.name} </td>
	        	<td>所在寝室号：${dormitoryChange.student.dormitory.name} </td>
	        	<td>原因：${dormitoryChange.reason }</td>
	        	<td>请求日期：<fmt:formatDate value="${dormitoryChange.requestDate}" dateStyle="MEDIUM"/></td>
	        	<td>更换楼栋号:${dormitoryChange.dormitory.building.name}</td>
	        	<td>更换寝室：${dormitoryChange.dormitory.name }</td>
	        	<td>受理状态：<input type="checkbox" value="${dormitoryChange.id }" 
	        						name="processed" 
	        						${dormitoryChange.status.processed ?  "checked='checked'" : "" }/>
	        	处理状态：<input type="checkbox" value="${dormitoryChange.id }" 
	        						name="applied" 
	        						$dormitoryChange.status.applied ? "checked='checked'" : "" }/>
	        	</td>
	        						
	        </tr>
       		</c:forEach>
        </tbody>
        <div class="confirm"><p></p></div>
        <div class="returnMessage"><p></p></div>
    </table>
</body>
</html>